<html>
<head>
<title>::.::.:: APPMA ::.::.::</title>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!-- ImageReady Styles (index.psd) -->

<link href="css/styleinner.css" rel="stylesheet" type="text/css">

<link href="css/css_tab/samples.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/SprySlidingPanels.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/tab_style.css" rel="stylesheet" type="text/css">
<!-- End ImageReady Styles -->
<script src="java/SprySlidingPanels.js" type="text/javascript"></script>
<style type="text/css">
<!--

#usefullinks {
	position:absolute;
	width:381px;
	height:94px;
	z-index:1;
	left: 38px;
	top: 30px;
}
-->
</style>


<script language="JavaScript" type="text/JavaScript">

function validate()
{
var date=document.getElementById("date").value; 
var expiry=document.getElementById("expiry").value;
var name=document.getElementById("name").value;
var contactname=document.getElementById("contactname").value;
var companyname=document.getElementById("companyname").value;
var subject=document.getElementById("subject").value;
var inquary=document.getElementById("inquary").value;


submitOK="true";

if (date==null||date==""||date=="_%")
 {
 alert("Please Enter The Date ! ");
 submitOK="false";
 }
 
 if (expiry==null||expiry==""||expiry=="_%")
 {
 alert("Please Enter The Expiry Date ! ");
 submitOK="false";
 }
 
 if (name==null||name==""||name=="_%")
 {
 alert("Please Enter Your Name ! ");
 submitOK="false";
 }
 
 if (contactname==null||contactname==""||contactname=="_%")
 {
 alert("Please Enter Your Contact ! ");
 submitOK="false";
 }
 
 if (companyname==null||companyname==""||companyname=="_%")
 {
 alert("Please Enter Your Company Name ! ");
 submitOK="false";
 }
 
 if (subject==null||subject==""||subject=="_%")
 {
 alert("Please Enter Subject ! ");
 submitOK="false";
 }
 
 if (inquary==null||inquary==""||inquary=="_%")
 {
 alert("Please Enter Inquiry ! ");
 submitOK="false";
 }
 
 
if (submitOK=="false")
 {
 return false;
 }
}

</script>



</head>
<body style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- ImageReady Slices (index.psd) -->
<center>
  <div id="Table_01">
    <div id="index-01">
	
	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="621" height="150">
        <param name="movie" value="flash/title.swf">
        <param name="quality" value="high">
        <embed src="flash/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="621" height="150"></embed>
      </object>
    </div>
	<div id="index-02">
		
	
			  <div id="contactlink" onClick="MM_goToURL('parent','contact.php');return document.MM_returnValue"></div>
	  <div id="feedback" onClick="MM_goToURL('parent','feedback.php');return document.MM_returnValue"></div>
	  <div id="sitemap" onClick="MM_goToURL('parent','sitemap.php');return document.MM_returnValue"></div>

<?php if(isset($_SESSION['SESS_MEMBER_ID'])) {
	echo '<div id="logout"><a href="logout.php">Logout</a></div>';
	}	  
	 ?> 
	
	

	  <div id="search">
	  <form action="search.php" method="get">
	  <td valign="middle" height="30px">
	  <input type="text" name="query" id="query" height="20px" size="35" action="include/js_suggest/suggest.php"></td>
	  <input type="text" name="search" value="1" style="display:none;">
	  <td valign="middle" height="30px">
	  <input type="submit" class="searchbtn" value=""></td>
	  </form>
	  </div>
	
	
	
	</div>
	<div id="index-03">
		
		
				<?php
				$File = "nav.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
		
		
	</div>
	<div id="index-04">
    <?php
				$File = "menuleft.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
		
    
    
   
    </div>
	<div id="index-09">
	  <div id="platinum">

<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT link FROM sponsor WHERE sponsor='platinum'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/platinum.jpg"></a>


	  </div>
	</div>
	<div id="index-13">
	  <div id="gold">
	  
	<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT link FROM sponsor WHERE sponsor='gold'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/gold.jpg"></a>
	  
	  </div>
    
    </div>
	<div id="index-16">
	  <div id="contact">
	    <p>HEAD OFFICE: Room #104,Azeem Chamber,<br>
		Hasan Ali Effendi Road, Karachi-74200.<br>
	      Phone: 021-32621041,<br>
	      Fax: 021-32210385,<br>
	      Email: paperassociation@homail.com<br>
        URL: www.appma.com.pk</p>
      </div>

	</div>
    <div id="mid">
    <div id="text">
      <div> 
        <div align="left"><font size="+2">SUBMIT YOUR TRADE INQUIRIES</font></div>
      </div>
<br>

  <table cellpadding="0" cellspacing="0">
    <tr> 
      <td valign="top">
	  </td>
		
      <td><div> 
         
          <form name="New" action="Trade_Insert.php" method="post" onSubmit="return validate()">
            
              <table  border="0" align="left" cellpadding="1" cellspacing="1" dwcopytype="CopyTableRow">
                <tbody valign="top"><tr>
                  <td><div><font size="2">Date:</font></div></td>
                  <td><div> 
                      <input maxlength="50" name="date" id="date" size="24">
                    </div></td>
                  
                  <td><div><font size="2">Date of Expiry:</font></div></td>
                  <td><div> 
                      <input maxlength="50" name="expiry" id="expiry" size="24">
                    </div></td>
                  </tr>
				                    <tr> 
                    <td><div><font size="2">Your Name: </font></div></td>
                    <td><div> 
                        <input name="name" id="name"size="24" maxlength="50">
                      </div></td>

                    <td><div><font size="2">Company Name: </font></div></td>
                    <td><div> 
                        <input name="companyname" id="companyname" size="24" maxlength="50">
                      </div></td>
                  </tr>
                  <tr> 
                    <td><div><font size="2">Contact:</font></div></td>
                    <td><div> 
                        <input name="contact" id="contactname" size="24" maxlength="50">
                      </div></td>

                   
                  </tr>
				  
                  <tr> 
                    <td><div><font size="2">Subject:</font></div></td>
                    <td><div> 
                        <textarea name="subject" cols="30" rows="3" id="subject"></textarea>
                      </div></td>
                  </tr>
				  
                  <tr> 
				  <td><div><font size="2">Inquiry: </font></div></td>
                    <td><div> 
                        <textarea name="inquary" cols="30" rows="5" id="inquary"></textarea>
                      </div></td>
                  </tr>

                  <tr> 
                    <td></td><td>	<img src="captcha.php"/>
	<p><input type="text" name="code" /><br> Please Type The Code.</p></td>
                  </tr>
                  <tr> 
                    <td height="4" align="center"><div> 
                        <input type="submit" name="Submit" value="Submit" class="button">
                      </div></td>
                  </tr>
                </tbody>
              </table>
            
          </form>
          </div></td>


    </tr>
	
    <tr>

	  <td height="50">

	  </td>
    </tr>
  </table>







</div>

	<div id="bottom">
		<img src="images/index_18.jpg" width="1003" height="42" alt="">	</div>
</div>
</div>
</center>
<!-- End ImageReady Slices -->
</body>
</html>